package com.zz.parkingsystem.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 支付申诉表
 * @TableName t_appeal_pay
 */
@Data
public class AppealPay implements Serializable {
    /**
     * 支付申诉表编号
     */
    private Integer apId;

    /**
     * 订单项id
     */
    private Integer oiId;

    /**
     * 退款表编号
     */
    private Integer refId;

    /**
     * 申诉内容
     */
    private String apContent;

    /**
     * 申诉图片
     */
    private String apImg;

    /**
     * 申诉时间
     */
    private Date apTime;

    /**
     * 申诉状态 0：待处理，1：已退款，2：不通过
     */
    private Integer apStatus;

    /**
     * 预留varchar字段
     */
    private String reservedVar;

    /**
     * 预留int字段
     */
    private Integer reservedInt;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppealPay other = (AppealPay) that;
        return (this.getApId() == null ? other.getApId() == null : this.getApId().equals(other.getApId()))
            && (this.getOiId() == null ? other.getOiId() == null : this.getOiId().equals(other.getOiId()))
            && (this.getRefId() == null ? other.getRefId() == null : this.getRefId().equals(other.getRefId()))
            && (this.getApContent() == null ? other.getApContent() == null : this.getApContent().equals(other.getApContent()))
            && (this.getApImg() == null ? other.getApImg() == null : this.getApImg().equals(other.getApImg()))
            && (this.getApTime() == null ? other.getApTime() == null : this.getApTime().equals(other.getApTime()))
            && (this.getApStatus() == null ? other.getApStatus() == null : this.getApStatus().equals(other.getApStatus()))
            && (this.getReservedVar() == null ? other.getReservedVar() == null : this.getReservedVar().equals(other.getReservedVar()))
            && (this.getReservedInt() == null ? other.getReservedInt() == null : this.getReservedInt().equals(other.getReservedInt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApId() == null) ? 0 : getApId().hashCode());
        result = prime * result + ((getOiId() == null) ? 0 : getOiId().hashCode());
        result = prime * result + ((getRefId() == null) ? 0 : getRefId().hashCode());
        result = prime * result + ((getApContent() == null) ? 0 : getApContent().hashCode());
        result = prime * result + ((getApImg() == null) ? 0 : getApImg().hashCode());
        result = prime * result + ((getApTime() == null) ? 0 : getApTime().hashCode());
        result = prime * result + ((getApStatus() == null) ? 0 : getApStatus().hashCode());
        result = prime * result + ((getReservedVar() == null) ? 0 : getReservedVar().hashCode());
        result = prime * result + ((getReservedInt() == null) ? 0 : getReservedInt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", apId=").append(apId);
        sb.append(", oiId=").append(oiId);
        sb.append(", refId=").append(refId);
        sb.append(", apContent=").append(apContent);
        sb.append(", apImg=").append(apImg);
        sb.append(", apTime=").append(apTime);
        sb.append(", apStatus=").append(apStatus);
        sb.append(", reservedVar=").append(reservedVar);
        sb.append(", reservedInt=").append(reservedInt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}